package fun.codedesign.jdk.lang.method;

import java.util.Date;


public class SwitchWeekDay {
    @SuppressWarnings("all")
    public static void main(String[] args) {
        new SwitchWeekDay().f(new Date().getDay());
    }

    void f(int x) {
        switch (x) {
            case 1:
                System.out.println("周一");
                break;
            case 2:
                System.out.println("周二");
                break;
            case 3:
                System.out.println("周三");
                break;
            case 4:
                System.out.println("周四");
                break;
            case 5:
                System.out.println("周五");
                break;
            case 6:
                System.out.println("周六");
                break;
            case 7:
                System.out.println("周日");
                break;
            default:
                System.out.println("不在五行之中");
                break;
        }
    }
}
